package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员资金变动记录实体类
 */
@Data
@TableName("member_change_records")
@ApiModel("会员资金变动记录")
public class MemberChangeRecords  extends AbdulBaseEntity {

    @ApiModelProperty(value = "主键ID", example = "1")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "变动记录编号", example = "CR202504050001")
    private String recordId;


    @ApiModelProperty(value = "变动类型", example = "充值/赠送/退款")
    private String changeType;

    @ApiModelProperty(value = "变动前余额(元)", example = "100.00")
    private BigDecimal preBalance;

    @ApiModelProperty(value = "变动前赠送余额(元)", example = "50.00")
    private BigDecimal preGiftBalance;

    @ApiModelProperty(value = "变动金额(元)", example = "200.00")
    private BigDecimal changeAmount;

    @ApiModelProperty(value = "变动赠送金额(元)", example = "50.00")
    private BigDecimal changeGiftAmount;

    @ApiModelProperty(value = "变动后余额(元)", example = "300.00")
    private BigDecimal postBalance;

    @ApiModelProperty(value = "变动后赠送余额(元)", example = "100.00")
    private BigDecimal postGiftBalance;

    @ApiModelProperty(value = "操作门店", example = "旗舰店")
    private String operateStore;

    @ApiModelProperty(value = "会员ID", example = "2001")
    private Long memberId;

    @ApiModelProperty(value = "卡号", example = "6228480000000001")
    private String cardNumber;
}
